package com.example.demo.controller;

import com.example.demo.util.BaseHttpParamPool;
import com.example.demo.util.RequestDto;
import com.example.demo.util.itfcheck.ItfCheckUtil;

public abstract  class TheadLocalController {
    protected  RequestDto getParam() {
        RequestDto requestDto = BaseHttpParamPool.getHttpServletRequest();
        String privateKey = "sqsqwqeqweqweqweqe"; //生成公私钥的私钥
        String data = ItfCheckUtil.decryption(requestDto,privateKey);// 解密出来的明文
        requestDto.setData(data);
        return  requestDto;
    }
}
